#import <Foundation/Foundation.h>
#import <GraphicsServices/GraphicsServices.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIApplication.h>

enum kSwipeDirection {kSwipeDirectionUp=1, kSwipeDirectionDown=2, kSwipeDirectionRight=4, kSwipeDirectionLeft=8};

@interface TestUITable : UITable{
	NSMutableArray *dataArray;
        id                whichAction2;
        id                whichAction;
        id                switchControl;
}
-(id)initWithFrame:(CGRect) rect andArray:(NSMutableArray*) a;

- (int)swipe:(int)direction withEvent:(struct __GSEvent *)event;

-(int)numberOfRowsInTable:(UITable*)table;
-(UITableCell*)table:(UITable*)table cellForRow:(int)row column:(int)column;


@end
@interface SpringSwitches : UIApplication {
        id                whichAction;
        id                whichAction2;
        id                checkAction;
		id				  defaults;
		int				  hideOrShow;
	NSMutableArray *dataArray;
    UIView        *mainView;
	TestUITable   *table;
	unsigned int	_barStyle;
         UINavigationBar  *_navBar;


         int       _currentView;
         CGRect    _rect;
         pthread_t emulation_tid;

         UISegmentedControl *frameControl;
         UISwitchControl *debugControl;
         UISwitchControl *delromsControl;
         UISwitchControl *autosaveControl;
         UISegmentedControl *spkControl;
         BOOL allowDeleteROMs;
         UIPreferencesTableCell *cell;

	
	NSMutableDictionary* _applicationStartupPaths;
	int _buttonInactiveStyle;
	int _buttonActiveStyle;
	int _buttonBackStyle;
	
	NSString* _settingsPath;
	id _delegate;
	UIKeyboard* _keyboard;
	
	
	
	
	
	
	
}


-(void)tableRowSelected:(NSNotification *)notification;


-(int)numberOfGroupsInPreferencesTable:(UIPreferencesTable *)table;
-(int)preferencesTable:(UIPreferencesTable *)table numberOfRowsInGroup:(int)group;
-(UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForGroup:(int)group;
-(UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForRow:(int)row inGroup:(int)group;


- (id)initWithFrame:(CGRect)frame;
- (void)dealloc;
- (void)deviceOrientationChanged;
- (void)startEmulator;
- (void)stopEmulator;
- (void)setNavBar;
- (BOOL)isBrowsing;
- (UIPreferencesTable *)createPrefPane;
- (UINavigationBar *)createNavBar;
- (void)savePreferences;
- (BOOL)needRestart;
 - (int)numberOfGroupsInPreferencesTable:(UIPreferencesTable *)aTable;
 - (int)preferencesTable:(UIPreferencesTable *)aTable numberOfRowsInGroup:(int)group;
 - (UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)aTable cellForGroup:(int)group;
 - (UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)aTable cellForRow:(int)row inGroup:(int)group;
 - (float)preferencesTable:(UIPreferencesTable *)aTable heightForRow:(int)row inGroup:(int)group withProposedHeight:(float)proposed;
 - (BOOL)preferencesTable:(UIPreferencesTable *)aTable isLabelGroup:(int)group;
- (void)applicationDidFinishLaunching: (id) unused;
- (unsigned int) barStyle;
 - (void) tableRowSelected: (NSNotification*) notification;

@end